package org.classdef.analyzer.info.constant;

/**
 * 
 * 常量信息抽象类
 *
 */
public abstract class ConstantInfo {

	protected short tag;
	
	protected ConstantPool pool;

	public abstract Object getValue();

	public ConstantInfo(short tag) {
		this.tag = tag;
	}

	/**
	 * @return tag
	 */
	public short getTag() {
		return tag;
	}

	/**
	 * @param tag 要设置的 tag
	 */
	public void setTag(short tag) {
		this.tag = tag;
	}

	/**
	 * @return pool
	 */
	public ConstantPool getPool() {
		return pool;
	}

	/**
	 * @param pool 要设置的 pool
	 */
	public void setPool(ConstantPool pool) {
		this.pool = pool;
	}

}